Optimal. Leaf size=399 \[ \frac{\left (2 a^2+b^2\right ) \sqrt{a^2-b^2} \tan ^{-1}\left (\frac{a \tan \left (\frac{1}{2} (c+d x)\right )+b}{\sqrt{a^2-b^2}}\right )}{a b^5 d}-\frac{2 \left (5 a^2+b^2\right ) \sqrt{a^2-b^2} \tan ^{-1}\left (\frac{a \tan \left (\frac{1}{2} (c+d x)\right )+b}{\sqrt{a^2-b^2}}\right )}{a b^5 d}+\frac{2 \left (-9 a^4 b^2+10 a^6-b^6\right ) \tan ^{-1}\left (\frac{a \tan \left (\frac{1}{2} (c+d x)\right )+b}{\sqrt{a^2-b^2}}\right )}{a^3 b^5 d \sqrt{a^2-b^2}}+\frac{\left (a^2-b^2\right )^2 \cos (c+d x)}{2 a b^4 d (a+b \sin (c+d x))^2}-\frac{\left (5 a^2+b^2\right ) \left (a^2-b^2\right ) \cos (c+d x)}{a^2 b^4 d (a+b \sin (c+d x))}+\frac{3 \left (a^2-b^2\right ) \cos (c+d x)}{2 b^4 d (a+b \sin (c+d x))}-\frac{3 x \left (2 a^2-b^2\right )}{b^5}-\frac{\tanh ^{-1}(\cos (c+d x))}{a^3 d}-\frac{3 a \cos (c+d x)}{b^4 d}+\frac{\sin (c+d x) \cos (c+d x)}{2 b^3 d}-\frac{x}{2 b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.517162, antiderivative size = 399, normalized size of antiderivative = 1., number of steps used = 20, number of rules used = 11, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.407, Rules used = {2897, 3770, 2638, 2635, 8, 2664, 2754, 12, 2660, 618, 204} \[ \frac{\left (2 a^2+b^2\right ) \sqrt{a^2-b^2} \tan ^{-1}\left (\frac{a \tan \left (\frac{1}{2} (c+d x)\right )+b}{\sqrt{a^2-b^2}}\right )}{a b^5 d}-\frac{2 \left (5 a^2+b^2\right ) \sqrt{a^2-b^2} \tan ^{-1}\left (\frac{a \tan \left (\frac{1}{2} (c+d x)\right )+b}{\sqrt{a^2-b^2}}\right )}{a b^5 d}+\frac{2 \left (-9 a^4 b^2+10 a^6-b^6\right ) \tan ^{-1}\left (\frac{a \tan \left (\frac{1}{2} (c+d x)\right )+b}{\sqrt{a^2-b^2}}\right )}{a^3 b^5 d \sqrt{a^2-b^2}}+\frac{\left (a^2-b^2\right )^2 \cos (c+d x)}{2 a b^4 d (a+b \sin (c+d x))^2}-\frac{\left (5 a^2+b^2\right ) \left (a^2-b^2\right ) \cos (c+d x)}{a^2 b^4 d (a+b \sin (c+d x))}+\frac{3 \left (a^2-b^2\right ) \cos (c+d x)}{2 b^4 d (a+b \sin (c+d x))}-\frac{3 x \left (2 a^2-b^2\right )}{b^5}-\frac{\tanh ^{-1}(\cos (c+d x))}{a^3 d}-\frac{3 a \cos (c+d x)}{b^4 d}+\frac{\sin (c+d x) \cos (c+d x)}{2 b^3 d}-\frac{x}{2 b^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2897
Rule 3770
Rule 2638
Rule 2635
Rule 8
Rule 2664
Rule 2754
Rule 12
Rule 2660
Rule 618
Rule 204
Rubi steps
\begin{align*} \int \frac{\cos ^5(c+d x) \cot (c+d x)}{(a+b \sin (c+d x))^3} \, dx &=\int \left (\frac{3 \left (-2 a^2+b^2\right )}{b^5}+\frac{\csc (c+d x)}{a^3}+\frac{3 a \sin (c+d x)}{b^4}-\frac{\sin ^2(c+d x)}{b^3}+\frac{\left (a^2-b^2\right )^3}{a b^5 (a+b \sin (c+d x))^3}-\frac{\left (a^2-b^2\right )^2 \left (5 a^2+b^2\right )}{a^2 b^5 (a+b \sin (c+d x))^2}+\frac{10 a^6-9 a^4 b^2-b^6}{a^3 b^5 (a+b \sin (c+d x))}\right ) \, dx\\ &=-\frac{3 \left (2 a^2-b^2\right ) x}{b^5}+\frac{\int \csc (c+d x) \, dx}{a^3}+\frac{(3 a) \int \sin (c+d x) \, dx}{b^4}-\frac{\int \sin ^2(c+d x) \, dx}{b^3}+\frac{\left (a^2-b^2\right )^3 \int \frac{1}{(a+b \sin (c+d x))^3} \, dx}{a b^5}-\frac{\left (\left (a^2-b^2\right )^2 \left (5 a^2+b^2\right )\right ) \int \frac{1}{(a+b \sin (c+d x))^2} \, dx}{a^2 b^5}+\frac{\left (10 a^6-9 a^4 b^2-b^6\right ) \int \frac{1}{a+b \sin (c+d x)} \, dx}{a^3 b^5}\\ &=-\frac{3 \left (2 a^2-b^2\right ) x}{b^5}-\frac{\tanh ^{-1}(\cos (c+d x))}{a^3 d}-\frac{3 a \cos (c+d x)}{b^4 d}+\frac{\cos (c+d x) \sin (c+d x)}{2 b^3 d}+\frac{\left (a^2-b^2\right )^2 \cos (c+d x)}{2 a b^4 d (a+b \sin (c+d x))^2}-\frac{\left (a^2-b^2\right ) \left (5 a^2+b^2\right ) \cos (c+d x)}{a^2 b^4 d (a+b \sin (c+d x))}-\frac{\int 1 \, dx}{2 b^3}-\frac{\left (a^2-b^2\right )^2 \int \frac{-2 a+b \sin (c+d x)}{(a+b \sin (c+d x))^2} \, dx}{2 a b^5}+\frac{\left (\left (a^2-b^2\right )^2 \left (5 a^2+b^2\right )\right ) \int \frac{a}{a+b \sin (c+d x)} \, dx}{a^2 b^5 \left (-a^2+b^2\right )}+\frac{\left (2 \left (10 a^6-9 a^4 b^2-b^6\right )\right ) \operatorname{Subst}\left (\int \frac{1}{a+2 b x+a x^2} \, dx,x,\tan \left (\frac{1}{2} (c+d x)\right )\right )}{a^3 b^5 d}\\ &=-\frac{x}{2 b^3}-\frac{3 \left (2 a^2-b^2\right ) x}{b^5}-\frac{\tanh ^{-1}(\cos (c+d x))}{a^3 d}-\frac{3 a \cos (c+d x)}{b^4 d}+\frac{\cos (c+d x) \sin (c+d x)}{2 b^3 d}+\frac{\left (a^2-b^2\right )^2 \cos (c+d x)}{2 a b^4 d (a+b \sin (c+d x))^2}+\frac{3 \left (a^2-b^2\right ) \cos (c+d x)}{2 b^4 d (a+b \sin (c+d x))}-\frac{\left (a^2-b^2\right ) \left (5 a^2+b^2\right ) \cos (c+d x)}{a^2 b^4 d (a+b \sin (c+d x))}+\frac{\left (a^2-b^2\right ) \int \frac{2 a^2+b^2}{a+b \sin (c+d x)} \, dx}{2 a b^5}+\frac{\left (\left (a^2-b^2\right )^2 \left (5 a^2+b^2\right )\right ) \int \frac{1}{a+b \sin (c+d x)} \, dx}{a b^5 \left (-a^2+b^2\right )}-\frac{\left (4 \left (10 a^6-9 a^4 b^2-b^6\right )\right ) \operatorname{Subst}\left (\int \frac{1}{-4 \left (a^2-b^2\right )-x^2} \, dx,x,2 b+2 a \tan \left (\frac{1}{2} (c+d x)\right )\right )}{a^3 b^5 d}\\ &=-\frac{x}{2 b^3}-\frac{3 \left (2 a^2-b^2\right ) x}{b^5}+\frac{2 \left (10 a^6-9 a^4 b^2-b^6\right ) \tan ^{-1}\left (\frac{b+a \tan \left (\frac{1}{2} (c+d x)\right )}{\sqrt{a^2-b^2}}\right )}{a^3 b^5 \sqrt{a^2-b^2} d}-\frac{\tanh ^{-1}(\cos (c+d x))}{a^3 d}-\frac{3 a \cos (c+d x)}{b^4 d}+\frac{\cos (c+d x) \sin (c+d x)}{2 b^3 d}+\frac{\left (a^2-b^2\right )^2 \cos (c+d x)}{2 a b^4 d (a+b \sin (c+d x))^2}+\frac{3 \left (a^2-b^2\right ) \cos (c+d x)}{2 b^4 d (a+b \sin (c+d x))}-\frac{\left (a^2-b^2\right ) \left (5 a^2+b^2\right ) \cos (c+d x)}{a^2 b^4 d (a+b \sin (c+d x))}+\frac{\left (\left (a^2-b^2\right ) \left (2 a^2+b^2\right )\right ) \int \frac{1}{a+b \sin (c+d x)} \, dx}{2 a b^5}+\frac{\left (2 \left (a^2-b^2\right )^2 \left (5 a^2+b^2\right )\right ) \operatorname{Subst}\left (\int \frac{1}{a+2 b x+a x^2} \, dx,x,\tan \left (\frac{1}{2} (c+d x)\right )\right )}{a b^5 \left (-a^2+b^2\right ) d}\\ &=-\frac{x}{2 b^3}-\frac{3 \left (2 a^2-b^2\right ) x}{b^5}+\frac{2 \left (10 a^6-9 a^4 b^2-b^6\right ) \tan ^{-1}\left (\frac{b+a \tan \left (\frac{1}{2} (c+d x)\right )}{\sqrt{a^2-b^2}}\right )}{a^3 b^5 \sqrt{a^2-b^2} d}-\frac{\tanh ^{-1}(\cos (c+d x))}{a^3 d}-\frac{3 a \cos (c+d x)}{b^4 d}+\frac{\cos (c+d x) \sin (c+d x)}{2 b^3 d}+\frac{\left (a^2-b^2\right )^2 \cos (c+d x)}{2 a b^4 d (a+b \sin (c+d x))^2}+\frac{3 \left (a^2-b^2\right ) \cos (c+d x)}{2 b^4 d (a+b \sin (c+d x))}-\frac{\left (a^2-b^2\right ) \left (5 a^2+b^2\right ) \cos (c+d x)}{a^2 b^4 d (a+b \sin (c+d x))}+\frac{\left (\left (a^2-b^2\right ) \left (2 a^2+b^2\right )\right ) \operatorname{Subst}\left (\int \frac{1}{a+2 b x+a x^2} \, dx,x,\tan \left (\frac{1}{2} (c+d x)\right )\right )}{a b^5 d}+\frac{\left (4 \left (a^2-b^2\right ) \left (5 a^2+b^2\right )\right ) \operatorname{Subst}\left (\int \frac{1}{-4 \left (a^2-b^2\right )-x^2} \, dx,x,2 b+2 a \tan \left (\frac{1}{2} (c+d x)\right )\right )}{a b^5 d}\\ &=-\frac{x}{2 b^3}-\frac{3 \left (2 a^2-b^2\right ) x}{b^5}-\frac{2 \sqrt{a^2-b^2} \left (5 a^2+b^2\right ) \tan ^{-1}\left (\frac{b+a \tan \left (\frac{1}{2} (c+d x)\right )}{\sqrt{a^2-b^2}}\right )}{a b^5 d}+\frac{2 \left (10 a^6-9 a^4 b^2-b^6\right ) \tan ^{-1}\left (\frac{b+a \tan \left (\frac{1}{2} (c+d x)\right )}{\sqrt{a^2-b^2}}\right )}{a^3 b^5 \sqrt{a^2-b^2} d}-\frac{\tanh ^{-1}(\cos (c+d x))}{a^3 d}-\frac{3 a \cos (c+d x)}{b^4 d}+\frac{\cos (c+d x) \sin (c+d x)}{2 b^3 d}+\frac{\left (a^2-b^2\right )^2 \cos (c+d x)}{2 a b^4 d (a+b \sin (c+d x))^2}+\frac{3 \left (a^2-b^2\right ) \cos (c+d x)}{2 b^4 d (a+b \sin (c+d x))}-\frac{\left (a^2-b^2\right ) \left (5 a^2+b^2\right ) \cos (c+d x)}{a^2 b^4 d (a+b \sin (c+d x))}-\frac{\left (2 \left (a^2-b^2\right ) \left (2 a^2+b^2\right )\right ) \operatorname{Subst}\left (\int \frac{1}{-4 \left (a^2-b^2\right )-x^2} \, dx,x,2 b+2 a \tan \left (\frac{1}{2} (c+d x)\right )\right )}{a b^5 d}\\ &=-\frac{x}{2 b^3}-\frac{3 \left (2 a^2-b^2\right ) x}{b^5}+\frac{\sqrt{a^2-b^2} \left (2 a^2+b^2\right ) \tan ^{-1}\left (\frac{b+a \tan \left (\frac{1}{2} (c+d x)\right )}{\sqrt{a^2-b^2}}\right )}{a b^5 d}-\frac{2 \sqrt{a^2-b^2} \left (5 a^2+b^2\right ) \tan ^{-1}\left (\frac{b+a \tan \left (\frac{1}{2} (c+d x)\right )}{\sqrt{a^2-b^2}}\right )}{a b^5 d}+\frac{2 \left (10 a^6-9 a^4 b^2-b^6\right ) \tan ^{-1}\left (\frac{b+a \tan \left (\frac{1}{2} (c+d x)\right )}{\sqrt{a^2-b^2}}\right )}{a^3 b^5 \sqrt{a^2-b^2} d}-\frac{\tanh ^{-1}(\cos (c+d x))}{a^3 d}-\frac{3 a \cos (c+d x)}{b^4 d}+\frac{\cos (c+d x) \sin (c+d x)}{2 b^3 d}+\frac{\left (a^2-b^2\right )^2 \cos (c+d x)}{2 a b^4 d (a+b \sin (c+d x))^2}+\frac{3 \left (a^2-b^2\right ) \cos (c+d x)}{2 b^4 d (a+b \sin (c+d x))}-\frac{\left (a^2-b^2\right ) \left (5 a^2+b^2\right ) \cos (c+d x)}{a^2 b^4 d (a+b \sin (c+d x))}\\ \end{align*}
Mathematica [A] time = 1.9756, size = 243, normalized size = 0.61 \[ \frac{\frac{2 \left (5 b^2-12 a^2\right ) (c+d x)}{b^5}+\frac{4 \left (-11 a^4 b^2+a^2 b^4+12 a^6-2 b^6\right ) \tan ^{-1}\left (\frac{a \tan \left (\frac{1}{2} (c+d x)\right )+b}{\sqrt{a^2-b^2}}\right )}{a^3 b^5 \sqrt{a^2-b^2}}+\frac{2 \left (a^2-b^2\right )^2 \cos (c+d x)}{a b^4 (a+b \sin (c+d x))^2}+\frac{2 \left (5 a^2 b^2-7 a^4+2 b^4\right ) \cos (c+d x)}{a^2 b^4 (a+b \sin (c+d x))}+\frac{4 \log \left (\sin \left (\frac{1}{2} (c+d x)\right )\right )}{a^3}-\frac{4 \log \left (\cos \left (\frac{1}{2} (c+d x)\right )\right )}{a^3}-\frac{12 a \cos (c+d x)}{b^4}+\frac{\sin (2 (c+d x))}{b^3}}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.204, size = 988, normalized size = 2.5 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 5.84042, size = 2257, normalized size = 5.66 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.28736, size = 857, normalized size = 2.15 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]